import Axios from "/@/utils/Axios";


export function getResourceType(data: any): Promise<any> {
  return Axios.get("/backapi/resourceTypes", data);
}

export function addResourceType(data: any): Promise<any> {
  return Axios.post("/backapi/resourceTypes", data);
}

export function editResourceType(data: any): Promise<any> {
  return Axios.put(`/backapi/resourceTypes/${data.id}`, data);
}

export function updateResourceTypeStatus(data: any): Promise<any> {
  return Axios.patch(`/backapi/resourceTypes/${data.id}/status`, data);
}
